function add_zero(n:number){
    return n>10?n+'':'0'+n
}
export default function formatDateTime(timeStamp: number) {
  let time = new Date(timeStamp);
  const y = time.getFullYear(),
    m = time.getMonth() + 1,
    d = time.getDay(),
    h = add_zero(time.getHours()),
    i = add_zero(time.getMinutes()),
    s = add_zero(time.getSeconds());
  return `${y}年${m}月${d}日 ${h}:${i}:${s}`;
}
